hurd-pathmax
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 31 Oct 2019 19:36:09 +0000 (19:36 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 31 Oct 2019 19:36:09 +0000 (19:36 +0000)
===================================================================

Gbp-Pq: Topic hurd
Gbp-Pq: Name hurd-pathmax.diff

clang/lib/Basic/FileManager.cpp
lldb/include/lldb/lldb-defines.h
llvm/tools/dsymutil/DwarfLinker.cpp
polly/lib/External/ppcg/cuda_common.c

index b6a7fde09f3573385e6240c5e62991c2bf46103f..09a09af4244cc8ae32a179e30318c2d40c10b262 100644 (file)
@@ -465,6 +465,12 @@ void FileManager::invalidateCache(const FileEntry *Entry) {
   UniqueRealFiles.erase(Entry->getUniqueID());
 }
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
+
 void FileManager::GetUniqueIDMapping(
                    SmallVectorImpl<const FileEntry *> &UIDToFiles) const {
   UIDToFiles.clear();
index b87964403f7e2ed992b4649a8fe798ae4333dc52..0a7d4e63f5bd191703a7bc8ed4a9ccf9745f26e9 100644 (file)
 #define INT32_MAX 2147483647
 #endif
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 #if !defined(UINT32_MAX)
 #define UINT32_MAX 4294967295U
 #endif
index e303484729268d9cb652f91a6d94a8c085b63c5c..c15cff828d2532b1955032dfedbdcdf35413991d 100644 (file)
 #include <utility>
 #include <vector>
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 namespace llvm {
 namespace dsymutil {
 
index 497353f4319f4cbfd7e931ae591b037cdd95b911..dd0690fb4e7b4c047a485f46be54c0c2a82904a6 100644 (file)
 #include "cuda_common.h"
 #include "ppcg.h"
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 /* Open the host .cu file and the kernel .hu and .cu files for writing.
  * Add the necessary includes.
  */